import 'package:flutter/material.dart';
//静态颜色，文字设置
import 'package:Smart/pages/productor008/project/res/res_colors.dart';
import 'package:Smart/pages/productor008/project/res/res_text.dart';
//屏幕适配
import 'package:Smart/utils/screen_unit/gs_screen_util.dart';


class GSBleTxtWidget{
  //弹框1文字中间部分：message激活蓝牙文字
  Widget blueToothMessageActive(BuildContext context) {
    return Container(
        width: 252.w,
        height: 162.w,
        margin: EdgeInsets.only(left: 19.w,right: 19.w,top:62.w),
        child: ListView.builder(
          itemCount: ResText.blueToothActivetxt.length,
          itemBuilder: (context, int index) {
            return blueToothTxtPub(ResText.blueToothActivetxt[index]['text']);
          },
        ));
  }

//弹框2中间文字部分
  Widget blueToothMessageLogin() {
    return Container(
        // width: 260.w,
        width: 252.w,
        height: 136.w,
        margin: EdgeInsets.only(left: 17.w,right: 22,top:69.w),
        child: blueToothTxtPub(ResText.blueToothLogin));
  }

  //弹框3文字中间部分：message使用蓝牙文字
   Widget blueToothMessageUse(BuildContext context) {
    return Container(
        // width: 260.w,
        width: 252.w,
        height: 102.w,
        margin: EdgeInsets.only(left: 6.w,top:49.w),
        child: ListView.builder(
          itemCount: ResText.blueToothUsetxt.length,
          itemBuilder: (context, int index) {
            return blueToothTxtPub(ResText.blueToothUsetxt[index]['text']);
          },
        ));
  }

  //弹框文字公共布局部分
   Widget blueToothTxtPub(String text) {
    return Text(text,
        // struStyle文本的最小行高/段落的间距样式
        strutStyle:
            StrutStyle(forceStrutHeight: true, height: 1, leading: 1.3),
        style: TextStyle(
          fontSize: 18.w,
          // fontWeight: FontWeight.w400,
          color: ResColors.color_141413,
          // decoration: TextDecoration.none
        ));
  }

}